package composite_pattern.abstract_file.file;

import composite_pattern.abstract_file.AbstractFile;

public class ImageFile extends AbstractFile {

    private String name;
    public String getName() {
        return name;
    }
    public ImageFile(String name){
        this.name = name;
    }
    @Override
    public void display() {
        System.out.println("我是一张图片");
    }
}
